export {}

interface Eat{
  eat(food:string):void
}

interface Run{
  run(distance:number):void
}

//人类
class Person implements Eat,Run{
  eat(food:string):void{
    console.log(`person${food}`);
  }

  run(distance:number):void{
    console.log(`person${distance}`);
  }
}

//动物类
class Animal implements Eat{
  eat(food:string):void{
    console.log(`animal${food}`);
  }
}